<?php include COMMON_PATH.'/index/header.html' ?>
<div class="se-wrap main-content clearfix">
    <div class="fl left-box">
        <div class="title">2017年度(共<?=$myRanking['ranking']['count']?>题)</div>
        <ul class="user-result-wrap">
            <li class="first">
                <img class="avatar" src="<?=$user['avatar']?>" alt="<?=$user['nickname']?>"  onerror = "iService.imgNoFind(this)">
                <p><span class="am-icon-venus"></span><?=$user['nickname']?> &nbsp;<?=$user['section']?></p>
            </li>
            <li>
                <i class="am-icon-sort-amount-desc"></i><span class="justify">排名</span>：<b><?=$myRanking['ranking']['ranking']?></b>
            </li>
            <li>
                <i class="am-icon-check-circle"></i><span class="justify">正确题目</span>：<b><?=$myRanking['correct']?></b>
            </li>
            <li>
                <i class="am-icon-graduation-cap"></i><span class="justify">总答题数</span>：<b><?=$myRanking['total']?></b>
            </li>
            <li>
                <i class="am-icon-pencil"></i><span class="justify">考试次数</span>：<b><?=$myRanking['number']?>次</b>
            </li>
            <li class="last">
                <i class="am-icon-file-text"></i><span class="justify">考试记录</span>：<b></b>
                <ol>
                    <?php foreach($myRanking['record'] as $k=>$v):?>
                    <li><a href="/question/results?llid=<?=$v['id']?>"><?=$k+1 .'、'.$v['name']?></a></li>
                    <?php endforeach;?>
                </ol>
            </li>
        </ul>
    </div>
    <div class="fr right-box">
        <div class="title">
            <span>总排名</span>
            <!--<form class="fr staff-select item" action="">
                <i class="am-icon-search"></i>
                <span>输入姓名或部门查询成绩</span>
                <input type="text">
            </form>-->
        </div>
        <ul class="good-list-wrap">
            <?php foreach($excellent as $k=>$v):?>
            <li class="clearfix">
                <i class="rank-num"><?=$k+1?></i><img class="avatar" src="<?=$v['avatar']?>" onerror = "iService.imgNoFind(this)"><div class="user-info">
                <p><?=$v['nickname']?></p>
                <p><?=$v['section']?></p>
            </div>
                <span class="fr que-num"><i><?=$v['correct']?></i>题</span>
            </li>
            <?php endforeach;?>
        </ul>
    </div>
</div>
<?php include COMMON_PATH.'/index/footer.html' ?>
<script type="text/javascript" src="/index/js/swiper/swiper.min.js"></script>
<script>
    navActive(3);
    $(function(){
        $(".good-list-wrap li").hover(function(){
            $(this).addClass('active').siblings('li').removeClass('active');
        },function(){
            $(this).removeClass('active');

        });
    });

</script>
</html>